<!--包含头部文件-->
{include file="public/header" /}
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 商户信息 {:refresh()}</nav>
<article class="page-container">
    {if condition="$bis.status==2"}
    <div class="row cl">
        <label class="form-label col-xs-4 col-sm-2"><span class="c-red">提示：</span></label>
        <div class=" col-xs-8 col-sm-10 c-red">
            非常抱歉，您提交的材料不符合条件，请重新提交
        </div>

    </div>
    {/if}
    {if condition="$bis.status==0"}
    <div class="row cl">
        <label class="form-label col-xs-4 col-sm-2"><span class="c-red">提示：</span></label>
        <div class=" col-xs-8 col-sm-10 c-red">
            商户信息更新已于{$bis.update_time}提交申请，请耐心等待系统后台审核
        </div>

    </div>
    {else}
    <form class="form form-horizontal"  method="post" action="{:url('baseinfo/update')}">
        基本信息：
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">商户id：</label>
            <div class=" col-xs-8 col-sm-3">
                {$bis.id}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商户名称：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" value="{$bis.name}" placeholder=""  name="name">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>所属城市：</label>
            <div class="formControls col-xs-8 col-sm-2">
				<span class="select-box">
				<select name="city_id" class="select cityId">
					<option value="0">--请选择--</option>
					{volist name="citys" id="vo"}
					  <option value="{$vo.id}" {if condition="$bis.city_id eq $vo.id"} selected="selected"{/if}>{$vo.name}</option>
				    {/volist}
				</select>
				</span>
            </div>
            <div class="formControls col-xs-8 col-sm-2">
				<span class="select-box">
				<select name="se_city_id" class="select se_city_id">
					<option value="0">{:getSeCityNameByPath($bis.city_path)}</option>
				</select>
				</span>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">缩略图：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input id="file_upload"  type="file" multiple="true" >
                <img id="upload_org_code_img" src="{$bis.logo}" width="150" height="150">
                <input id="file_upload_image" name="logo" type="hidden" multiple="true" value="{$bis.logo}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">营业执照：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input id="file_upload_other"  type="file" multiple="true" >
                <img id="upload_org_code_img_other" src="{$bis.licence_logo}" width="150" height="150">
                <input id="file_upload_image_other" name="licence_logo" type="hidden" multiple="true" value="{$bis.licence_logo}">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">商户介绍：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <script id="editor1"  type="text/plain" name="description" style="width:80%;height:300px;">{$bis.description|html_entity_decode}</script>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">银行账号:</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" value="{$bis.bank_info}" placeholder=""  name="bank_info">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">开户行名称:</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" value="{$bis.bank_name}" placeholder=""  name="bank_name">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">开户人姓名:</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" value="{$bis.bank_user}" placeholder=""  name="bank_user">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">法人:</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" value="{$bis.faren}" placeholder=""  name="faren">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">法人电话:</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" value="{$bis.faren_tel}" placeholder=""  name="faren_tel">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>邮箱：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" value="{$bis.email}" placeholder=""  name="email">
            </div>
        </div>

        <div class="row cl">
            <input type="hidden" name="id" value="{$bis.id}">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <button  class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 更新</button>
            </div>
        </div>
    </form>
    {/if}
</article>

<!--包含尾部文件-->
{include file="public/footer" /}
<script type="text/javascript" src="__STATIC__/admin/hui/lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/admin/hui/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="__STATIC__/admin/hui/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script>
    var SCOPE = {
        "city_url" : "{:url('api/city/getCitysByParentId')}",
        "category_url" : "{:url('api/category/getCategoryByParentId')}",
        "uploadify_swf" : "__STATIC__/admin/uploadify/uploadify.swf",
        "image_upload" : "{:url('api/image/upload')}",
    };
</script>
<!--分配编辑器-->
<script>
    $(function(){
        var ue = UE.getEditor('editor');
        var ue1 = UE.getEditor('editor1');
    });
</script>
</body>
</html>